{include file="header.tpl"}

{foreach item=p from=$practice}{/foreach}
{foreach item=c from=$company} {/foreach}
{foreach item=pe from=$person} {/foreach}

{$info_action}

<div class="grid_6">
	<h2>Szczegóły praktyki</h2>

	<form method="post" action="edit_practice.php">
		<input type="hidden" name= "practice_id" value="{$p.id}" />
		<table>
			<tr>
				<td><label for="date_start" class="label">Od dnia (RRRR-MM-DD)</label></td>
				<td><input type="text" id="date_start" name="date_start" class="input" value="{$p.date_start}"/></td>
				<td></td>
			</tr>
			<tr>
				<td><label for="date_end" class="label">Do dnia (RRRR-MM-DD)</label></td>
				<td><input type="text" id="date_end" name="date_end" class="input" value="{$p.date_end}"/></td>
				<td></td>
			</tr>
			<tr>
				<td><label for="amount" class="label">Ilość miejsc</label></td>
				<td><input type="text" id="amount" name="amount" class="input" value="{$p.amount}"/></td>
				<td></td>
			</tr>
			<tr>
				<td><label for="paid" class="label">Praktyka płatna?</label></td>
				<td style="vertical-align: middle";><input type="checkbox" id="paid" name="paid" checked = "{if $p.paid == '1'}checked{/if}" /></td>
				<td></td>
			</tr>	
			<tr>
				<td><label for="duties" class="label">Zakres obowiązków</label></td>
				<td><textarea name="duties" id="duties" rows="5" cols="20" class="input" >{$p.duties}</textarea></td>
				<td></td>
			</tr>
			<tr>
				<td><label for="requirements" class="label">Wymagania</label></td>
				<td><textarea name="requirements" id="requirements" rows="5" cols="20" class="input">{$p.requirements}</textarea></td>
				<td></td>
			</tr>
			<tr>
				<td><label for="technology" class="label">Technologie</label></td>
				<td><textarea name="tech" id="tech" rows="5" cols="20" class="input">{$p.technology}</textarea></td>
				<td></td>
			</tr>					
		</table>
		<input type="submit" class="button b_blue" name="update" value="Zmień" />
	</form>
</div>
<div class="grid_6">
	<h2>Informacje o firmie</h2>
	<table>
		<tr>
			<td>Nazwa</td>
			<td>{$c.name}</td>
		</tr>
		<tr>
			<td>Adres</td>
			<td>{$c.address}</td>
		</tr>
		<tr>
			<td>Strona www</td>
			<td>{$c.site}</td>
		</tr>			
		<tr>
			<td>Email</td>
			<td>{$c.email}</td>
		</tr>
		<tr>
			<td>Telefon</td>
			<td>{$c.phone}</td>
		</tr>
	
	</table>
	
	<h2>Osoba kontaktowa</h2>
	<table>
		<tr>
			<td>Imię</td>
			<td>{$pe.name}</td>
		</tr>
		<tr>
			<td>Nazwisko</td>
			<td>{$pe.surname}</td>
		</tr>		
		<tr>
			<td>Email</td>
			<td>{$pe.email}</td>
		</tr>
		<tr>
			<td>Telefon</td>
			<td>{$pe.phone}</td>
		</tr>
	
	</table>	
</div>

{include file="footer.tpl"}